.class public Lcom/instagram/android/directshare/h/a;
.super Ljava/lang/Object;
.source "DirectShareRecipientsStore.java"


# instance fields
.field public a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation
.end field

.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation
.end field

.field private d:Z


# direct methods
.method private constructor <init>()V
    .locals 1

    .prologue
    .line 28
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 22
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    .line 23
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    .line 26
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/directshare/h/a;->a:Ljava/util/List;

    .line 29
    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/android/directshare/h/b;)V
    .locals 0
    .parameter

    .prologue
    .line 17
    invoke-direct {p0}, Lcom/instagram/android/directshare/h/a;-><init>()V

    return-void
.end method

.method public static a()Lcom/instagram/android/directshare/h/a;
    .locals 1

    .prologue
    .line 37
    sget-object v0, Lcom/instagram/android/directshare/h/c;->a:Lcom/instagram/android/directshare/h/a;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/instagram/android/model/b/e;)V
    .locals 1
    .parameter

    .prologue
    .line 50
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 51
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 52
    return-void
.end method

.method public b(Lcom/instagram/android/model/b/e;)V
    .locals 1
    .parameter

    .prologue
    .line 55
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 56
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 57
    return-void
.end method

.method public b()Z
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    return v0
.end method

.method public c()V
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 46
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 47
    return-void
.end method

.method public c(Lcom/instagram/android/model/b/e;)V
    .locals 1
    .parameter

    .prologue
    .line 86
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 87
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 88
    return-void
.end method

.method public d()V
    .locals 2

    .prologue
    .line 60
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    new-array v1, v1, [Lcom/instagram/android/model/b/e;

    invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/instagram/android/model/b/e;

    .line 61
    new-instance v1, Lcom/instagram/android/directshare/h/b;

    invoke-direct {v1, p0}, Lcom/instagram/android/directshare/h/b;-><init>(Lcom/instagram/android/directshare/h/a;)V

    invoke-static {v0, v1}, Ljava/util/Arrays;->sort([Ljava/lang/Object;Ljava/util/Comparator;)V

    .line 67
    iget-object v1, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 68
    iget-object v1, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 69
    return-void
.end method

.method public e()Z
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    return v0
.end method

.method public f()I
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public g()V
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 82
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 83
    return-void
.end method

.method public h()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation

    .prologue
    .line 91
    iget-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    if-nez v0, :cond_0

    .line 92
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 93
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->a:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/android/directshare/h/a;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 94
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->a:Ljava/util/List;

    iget-object v1, p0, Lcom/instagram/android/directshare/h/a;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 95
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/directshare/h/a;->d:Z

    .line 98
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/directshare/h/a;->a:Ljava/util/List;

    invoke-static {v0}, Lcom/b/a/b/bu;->a(Ljava/util/Collection;)Lcom/b/a/b/bu;

    move-result-object v0

    return-object v0
.end method
